class DishesController < ApplicationController
  def sold
    dish = Dish.find(params[:id])
    if dish.user_id != @user.id
      render :text => "非法操作"
      return
    end
    dish.sold
    redirect_to home_path()
  end

  def stole
  end

end
